package cn.ljy.authority.service.impl;

import cn.hutool.core.io.FileUtil;
import cn.ljy.authority.config.security.UserUtil;
import cn.ljy.authority.config.upload.FileUploadConfig;
import cn.ljy.authority.dao.mapper.*;
import cn.ljy.authority.model.SysHairdresser;
import cn.ljy.authority.model.SysRole;
import cn.ljy.authority.model.SysUser;
import cn.ljy.authority.model.SysUserRegLog;
import cn.ljy.authority.model.dto.SysUserAuthority;
import cn.ljy.authority.model.query.SysHairdresserQuery;
import cn.ljy.authority.model.query.SysUserQuery;
import cn.ljy.authority.service.SysHairdresserService;
import cn.ljy.authority.service.SysUserService;
import cn.ljy.common.exception.model.MyServiceException;
import cn.ljy.common.exception.model.MyWebException;
import cn.ljy.common.utils.file.MyFileUpload;
import cn.ljy.common.utils.password.SHA;
import cn.ljy.common.utils.requests.RequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationCredentialsNotFoundException;
import org.springframework.security.authentication.DisabledException;
import org.springframework.security.authentication.LockedException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Service
@Validated//表示开启sprint的校检框架，会自动扫描方法里的@Valid（@Valid注解一般写在接口即可）
@Slf4j
public class ISysHairdresserService extends IBaseService<SysHairdresser, SysHairdresserQuery> implements SysHairdresserService{

}
